package com.xinz.activity;

import com.xinz.Constants;
import com.xinz.common.Connector;
import com.xinz.shared.player.PlayerInterface;
import com.xinz.shared.player.SharePlayer;

import android.os.Bundle;

public class SpotActivity extends BaseActivity{

	String account;
	String password;
	
	PlayerInterface playerServer;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		account = getIntent().getStringExtra(Constants.ACCOUNT);
		password = getIntent().getStringExtra(Constants.PASSWORD);
		
		playerServer = Connector.getImplement(PlayerInterface.class);
		SharePlayer sharePlayer = playerServer.login(account, password);
		System.out.print(sharePlayer.getName());
	}
}
